#define ARGTYPE_FLAGMASK 0xfffff000
#define ARG_NOMINMAX NULL, NULL
-#define ARG_TERMINATOR {0, 0, 0, 0, 0, ARG_NOMINMAX}
+#define ARG_TERMINATOR {0, 0, 0, 0, 0, ARG_NOMINMAX, NULL}
typedef struct arglist {
const char* argstring;
ff_deinit wr_deinit;
} position_ops_t;
+#define NULL_POS_OPS { 0, 0, 0, 0, 0, 0, }
+
/*
* Describe the file format to the caller.
*/
}
static void
-gpx_track_tlr(const route_head* rte)
+gpx_track_tlr(const route_head*)
{
if (!QUEUE_EMPTY(¤t_trk_head->waypoint_list)) {
writer->writeEndElement();
}
static void
-gpx_route_tlr(const route_head* rte)
+gpx_route_tlr(const route_head*)
{
writer->writeEndElement(); // Close rte tag.
}
arglist_t gpx_args[] = {
{
"snlen", &snlen, "Length of generated shortnames",
- "32", ARGTYPE_INT, "1", NULL
+ "32", ARGTYPE_INT, "1", NULL, NULL
},
{
"suppresswhite", &suppresswhite,
"No whitespace in generated shortnames",
- NULL, ARGTYPE_BOOL, ARG_NOMINMAX
+ NULL, ARGTYPE_BOOL, ARG_NOMINMAX, NULL
},
{
"logpoint", &opt_logpoint,
"Create waypoints from geocache log entries",
- NULL, ARGTYPE_BOOL, ARG_NOMINMAX
+ NULL, ARGTYPE_BOOL, ARG_NOMINMAX, NULL
},
{
"urlbase", &urlbase, "Base URL for link tag in output",
- NULL, ARGTYPE_STRING, ARG_NOMINMAX
+ NULL, ARGTYPE_STRING, ARG_NOMINMAX, NULL
},
{
"gpxver", &gpx_wversion, "Target GPX version for output",
- NULL, ARGTYPE_STRING, ARG_NOMINMAX
+ NULL, ARGTYPE_STRING, ARG_NOMINMAX, NULL
},
{
"humminbirdextensions", &opt_humminbirdext,
"Add info (depth) as Humminbird extension",
- NULL, ARGTYPE_BOOL, ARG_NOMINMAX
+ NULL, ARGTYPE_BOOL, ARG_NOMINMAX, NULL
},
{
"garminextensions", &opt_garminext,
"Add info (depth) as Garmin extension",
- NULL, ARGTYPE_BOOL, ARG_NOMINMAX
+ NULL, ARGTYPE_BOOL, ARG_NOMINMAX, NULL
},
ARG_TERMINATOR
};
gpx_write,
gpx_exit,
gpx_args,
- CET_CHARSET_UTF8, 0 /* non-fixed to create non UTF-8 XML's for testing | CET-REVIEW */
+ CET_CHARSET_UTF8, 0, /* non-fixed to create non UTF-8 XML's for testing | CET-REVIEW */
+ NULL_POS_OPS,
+ NULL,
};
arglist_t mag_sargs[] = {
{
"deficon", &deficon, "Default icon name", NULL, ARGTYPE_STRING,
- ARG_NOMINMAX
+ ARG_NOMINMAX, NULL
},
{
"maxcmts", &cmts, "Max number of comments to write (maxcmts=200)",
- "200", ARGTYPE_INT, ARG_NOMINMAX
+ "200", ARGTYPE_INT, ARG_NOMINMAX, NULL
},
{
"baud", &bs, "Numeric value of bitrate (baud=4800)", "4800",
- ARGTYPE_INT, ARG_NOMINMAX
+ ARGTYPE_INT, ARG_NOMINMAX, NULL
},
{
"noack", &noack, "Suppress use of handshaking in name of speed",
- NULL, ARGTYPE_BOOL, ARG_NOMINMAX
+ NULL, ARGTYPE_BOOL, ARG_NOMINMAX, NULL
},
{
"nukewpt", &nukewpt, "Delete all waypoints", NULL, ARGTYPE_BOOL,
- ARG_NOMINMAX
+ ARG_NOMINMAX, NULL
},
ARG_TERMINATOR
};
arglist_t mag_fargs[] = {
{
"deficon", &deficon, "Default icon name", NULL, ARGTYPE_STRING,
- ARG_NOMINMAX
+ ARG_NOMINMAX, NULL
},
{
"maxcmts", &cmts, "Max number of comments to write (maxcmts=200)",
- NULL, ARGTYPE_INT, ARG_NOMINMAX
+ NULL, ARGTYPE_INT, ARG_NOMINMAX, NULL
},
ARG_TERMINATOR
};
lngdir = ifield[4][0];
alt = atof(ifield[5]);
altunits = ifield[6][0];
+ (void)altunits;
sscanf(ifield[7], "%d.%d", &hms, &fracsecs);
/* Field 8 is constant */
/* Field nine is optional track name */
void
mag_rteparse(char* rtemsg)
{
- char descr[100];
int n;
int frags,frag,rtenum;
char xbuf[100],next_stop[100],abuf[100];
char* p;
char* rte_name = NULL;
- descr[0] = 0;
#if 0
sscanf(rtemsg,"$PMGNRTE,%d,%d,%c,%d%n",
&frags,&frag,xbuf,&rtenum,&n);
}
static
-void mag_track_nop(const route_head* rte)
+void mag_track_nop(const route_head*)
{
return;
}
}
static void
-mag_route_hdr(const route_head* rh)
+mag_route_hdr(const route_head*)
{
}
mag_write,
NULL,
mag_sargs,
- CET_CHARSET_ASCII, 0 /* CET-REVIEW */
+ CET_CHARSET_ASCII, 0, /* CET-REVIEW */
+ NULL_POS_OPS,
+ NULL,
};
ff_vecs_t mag_fvecs = {
mag_write,
NULL,
mag_fargs,
- CET_CHARSET_ASCII, 0 /* CET-REVIEW */
+ CET_CHARSET_ASCII, 0, /* CET-REVIEW */
+ NULL_POS_OPS,
+ NULL,
};
/*
mag_write,
NULL,
mag_fargs,
- CET_CHARSET_ASCII, 0 /* CET-REVIEW */
+ CET_CHARSET_ASCII, 0, /* CET-REVIEW */
+ NULL_POS_OPS,
+ NULL,
};
static
arglist_t mps_args[] = {
- {"snlen", &snlen, "Length of generated shortnames", "10", ARGTYPE_INT, "1", NULL },
+ {
+ "snlen", &snlen, "Length of generated shortnames", "10", ARGTYPE_INT, "1",
+ NULL, NULL
+ },
{
"snwhite", &snwhiteopt, "Allow whitespace synth. shortnames",
- NULL, ARGTYPE_BOOL, ARG_NOMINMAX
+ NULL, ARGTYPE_BOOL, ARG_NOMINMAX, NULL
},
{
"mpsverout", &mpsverout,
"Version of mapsource file to generate (3,4,5)", NULL,
- ARGTYPE_INT, ARG_NOMINMAX
+ ARGTYPE_INT, ARG_NOMINMAX, NULL
},
{
"mpsmergeout", &mpsmergeouts, "Merge output with existing file",
- NULL, ARGTYPE_BOOL, ARG_NOMINMAX
+ NULL, ARGTYPE_BOOL, ARG_NOMINMAX, NULL
},
{
"mpsusedepth", &mpsusedepth,
"Use depth values on output (default is ignore)", NULL,
- ARGTYPE_BOOL, ARG_NOMINMAX
+ ARGTYPE_BOOL, ARG_NOMINMAX, NULL
},
{
"mpsuseprox", &mpsuseprox,
"Use proximity values on output (default is ignore)",
- NULL, ARGTYPE_BOOL, ARG_NOMINMAX
+ NULL, ARGTYPE_BOOL, ARG_NOMINMAX, NULL
},
ARG_TERMINATOR
};
static void
-mps_noop(const route_head* wp)
+mps_noop(const route_head*)
{
/* no-op */
}
{
int reclen;
+ (void)mps_ver;
+
#if 0
/* At the moment we're not doing anything with map segments, but here's the template code as if we were */
char hdr[100];
{
int reclen;
+ (void)mps_ver;
+
/* At the moment we're not doing anything with mapsetnames, but here's the template code as if we were
char hdr[100];
mps_readstr(mps_file, hdr, sizeof(hdr));
char hdr[100];
int reclen;
+ (void)mps_ver;
+
hdr[0] = 'V'; /* mapsetname start of record indicator */
hdr[1] = 0; /* zero length null terminated string */
hdr[2] = 1; /* mapsetname autoname flag set to DO autoname */
#endif
mpsclass = gbfgetint32(mps_file); /* class */
+ (void)mpsclass;
mps_readstr(mps_file, tbuf, sizeof(tbuf)); /* country */
if ((mps_ver == 4) || (mps_ver == 5)) {
char hdr[2];
int value = 0;
+ (void)mps_ver;
hdr[0] = 1;
if (rte->waypoint_list.next) { /* this test doesn't do what I want i.e test if this is a valid route - treat as a placeholder for now */
double mps_altitude = unknown_alt;
double mps_depth = unknown_alt;
+ (void)mps_ver;
+
trkname = gbfgetcstr(mps_file);
#ifdef MPS_DEBUG
fprintf(stderr, "mps_track_r: reading track %s\n", trkname);
queue* elem, *tmp;
+ (void)mps_ver;
+
/* total nodes (waypoints) this track */
trk_datapoints = 0;
if (trk->waypoint_list.next) { /* this test doesn't do what I want i.e test if this is a valid track - treat as a placeholder for now */
double mps_altitude = wpt->altitude;
double mps_depth = unknown_alt;
+ (void)mps_ver;
+
lat = GPS_Math_Deg_To_Semi(wpt->latitude);
lon = GPS_Math_Deg_To_Semi(wpt->longitude);
if (WAYPT_HAS(wpt, depth) && mpsusedepth) {
mps_write,
NULL,
mps_args,
- CET_CHARSET_MS_ANSI /* CET-REVIEW */
+ CET_CHARSET_MS_ANSI, 0, /* CET-REVIEW */
+ NULL_POS_OPS,
+ NULL,
};